package com.day0916;

public class Dog {
    String name;//姓名
    String color;//颜色
    int age;//年龄
    char sex;//性别
    String strain;//品种
    public void show(){
        System.out.println("姓名：" + name + ",年龄：" + age + ",性别：" + sex + ",颜色：" + color + ",品种：" + strain);
    }
    public void cry(){
        System.out.println(name + "会叫！");
    }
    public void run(){
        System.out.println(name + "会跑！");
    }
}
